home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / nasm095s.zip / RDOFF / COLLECTN.H < prev    next >
C/C++ Source or Header  |  1997-07-27  |  565b  |  23 lines

  1. /* collectn.h    Header file for 'collection' abstract data type
  2.  *
  3.  * This file is public domain, and does not come under the NASM license.
  4.  * It, along with 'collectn.c' implements what is basically a variable
  5.  * length array (of pointers)
  6.  */
  7.  
  8. #ifndef _COLLECTN_H
  9. #define _COLLECTN_H
  10.  
  11. typedef struct tagCollection {
  12.   void    *p[32];        /* array of pointers to objects */
  13.   
  14.   struct tagCollection *next;
  15. } Collection;
  16.  
  17. void    collection_init(Collection * c);
  18. void ** colln(Collection * c, int index);
  19. void    collection_reset(Collection * c);
  20.  
  21. #endif
  22.  
  23.